package com.bjh.service.impl;

import com.bjh.dao.AgentDao;
import com.bjh.service.AgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class AgentServiceImpl implements AgentService {
    @Autowired
    private AgentDao agentDao;

    /**
     * 通过账号或者手机号获取代理商
     * @param account 账号或者手机号
     * @return {@link Map}
     * @throws Exception Exception
     */
    @Override
    public Map<String, Object> getAgentByAccountOrMobile(String account) throws Exception {
        return agentDao.getAgentByAccountOrMobile(account);
    }
}
